#include "fn.h"

double tik() {
    // return (double)CLOCKS_PER_SEC ; 
    static double mstik = 0 ;
    static double tikbegin =0 ; 
    double tikend = (double)clock()/CLOCKS_PER_SEC*1000 ; 

    mstik = mstik + (tikend - (double)tikbegin) ;
    tikbegin = tikend ; 
    return mstik;
}

double msin(double x){
    return sin(x) ;
}


double mcos(double x) {
    return cos(x) ; 
}


double mexp(double x) {
    return exp(x);  
}


double mpow(double x,double y) {
    return pow(x,y);  
}

double msqrt(double x) {
    return sqrt(x);  
}

double mlog(double x) {
    return log(x);  
}

double mlog10(double x) {
    return log10(x);  
}

double mabs(double x) {
    return fabs(x);  
}

int mceil(double x) {
    return ceil(x) ;
}

int mfloor(double x) {
    return floor(x) ;
}


int mround(double x) {
    return round(x);
}


double mmin(double a , double b) {
    return a<b ? a : b ; 
}

double mmax(double a , double b) {
    return a>b ? a : b ; 
}


double masin(double x) {
    return asin(x) ;
}

double macos(double x) {
    return acos(x) ;
}

double matan(double x) {
    return atan(x) ;
}

double matan2(double x,double y) {
    return atan2(x,y) ;
}

double mtan(double x) {
    return tan(x) ;
}


void os(string x) {
    system(x.c_str()) ;
}

